package com.example.bcscb.service.impl;

import com.example.bcscb.mapper.UserMapper;
import com.example.bcscb.service.BaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author bc
 * @Description:
 * @date 2024/03/19
 */
@Service
public class BaseServiceImpl implements BaseService {

    @Resource
    private UserMapper userMapper;

    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void test() {
        userMapper.update();
    }

}
